home *** CD-ROM | disk | FTP | other *** search
/ Carousel / CAROUSEL.cdr / mactosh / util / simulare.sit / Simula 4.07 Reference / card_59780.txt < prev    next >
Text File  |  1989-05-02  |  2KB  |  65 lines

  1. -- card: 59780 from stack: in.07 Reference
  2. -- bmap block id: 60402
  3. -- flags: 0000
  4. -- background id: 13647
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0002
  11. -- rect: left=298 top=105 right=173 bottom=495
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: 
  20.  
  21.  
  22. -- part 3 (button)
  23. -- low flags: 00
  24. -- high flags: A004
  25. -- rect: left=14 top=290 right=312 bottom=98
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: Explain
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   go to card id 59530
  37. end mouseUp
  38.  
  39.  
  40.  
  41.  
  42. -- part contents for background part 2
  43. ----- text -----
  44. class Process
  45.  
  46. -- part contents for background part 1
  47. ----- text -----
  48. Note that Process is prefixed by Link, so Process objects can be inserted in a Simset-list.
  49.  
  50. Link class Process;
  51. begin
  52.    Boolean procedure Idle; ...;
  53.    Boolean procedure Terminated; ...;
  54.    long real procedure EvTime; ...;
  55.    ref(Process) procedure NextEv; ...;
  56.    Detach;
  57.    inner;                                                 Note!
  58.    TERMINATED := true;
  59.    Passivate;
  60.    Error("Attempt to activate terminated process");
  61. end;
  62.  
  63. -- part contents for card part 1
  64. ----- text -----
  65. Note: do NOT use Detach, Call or Resume on a process object. It will almost certainly interfere with class Simulation's own sequencing,with chaos as result